package com.studentmanagement.model;

public class Course {
    private Integer courseId;
    private String courseName;
    private Integer creditHours;
    private String description;
    private String teacher;

    public Course() {
    }

    public Course(Integer courseId, String courseName, Integer creditHours, String description, String teacher) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.creditHours = creditHours;
        this.description = description;
        this.teacher = teacher;
    }

    // Getters and Setters
    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public Integer getCreditHours() {
        return creditHours;
    }

    public void setCreditHours(Integer creditHours) {
        this.creditHours = creditHours;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "Course [courseId=" + courseId + ", courseName=" + courseName +
                ", creditHours=" + creditHours + ", teacher=" + teacher + "]";
    }
}